<?php

namespace App\Enums;

class CrossRoomPkEnum
{

    //跨房PK ln_cross_room_pk
    /**********状态*********/
    // 状态 0:未开始 1:未接收 2:拒绝 3:PK进行中 4:已结束  5:异常被判
    const  CROSS_NOT_START   = 0;
    const  CROSS_NOT_RECEIVE = 1;
    const  CROSS_REFUSE      = 2;
    const  CROSS_CONDUCT     = 3;
    const  CROSS_END         = 4;
    const  CROSS_ABNORMAL    = 5;
    const  CROSS_NOT_RESPONSE = 99;


    //0正常  1 切换为其他模式 2 房间被封禁 3 房主结束PK 4 主持麦被封
    // 5 主持退出房间 6 主持下麦 7 主持麦弱网至被踢出房间 8 主持麦结束PK
    const ABNORMAL_DEFAULT      = 0;
    const ABNORMAL_SWITCH       = 1;
    const ABNORMAL_END          = 2;
    const ABNORMAL_HOST_SEALED  = 3;
    const ABNORMAL_HOST         = 4;
    const ABNORMAL_RETREAT      = 5;
    const ABNORMAL_HOST_LOWER   = 6;
    const ABNORMAL_HOST_NETWORK = 7;
    const ABNORMAL_HOST_END     = 8;
    const ABNORMAL_HOST_DONT_KNOW = 100;


    //ln_cross_room_pk_config 时长
    //接受随机匹配 //开启 //关闭
    const  CONFIG_RANDOM_OPNE  = 1;
    const  CONFIG_RANDOM_CLOSE = 0;
    //接受pk邀请 //开启 //关闭
    const  CONFIG_INVITE_OPEN  = 1;
    const  CONFIG_INVITE_CLOSE = 0;

    //ln_cross_room_pk_contribute
    //  //0：正常；1：空麦 ；2：离开';
    const  WHEAT_EMPTY  = 1;
    const  WHEAT_NORMAL = 0;
    const  WHEAT_LEAVE  = 2;

    //ln_cross_room_pk_blacklist
    //  1 加入黑名单  0 删除黑名单
    const  BLACK_JOIN = 1;
    const  BLACK_DEL  = 0;

    //win_flag right  获胜标识 0:初始状态，1:左方胜(发起方)，2:右方胜（接收房），3:平局 4:异常
    const WIN_FLAG_INITIAL = 0;
    const WIN_FLAG_LEFT    = 1;
    const WIN_FLAG_RIGHT   = 2;
    const WIN_FLAG_FLAT    = 3;
    const WIN_FLAG_ABNL    = 4;

    //1:成功，2:失败，3:平局 4:异常  status
    const WIN_STATUS_SUCCESS = 1;
    const WIN_STATUS_FAIL    = 2;
    const WIN_STATUS_FLAT    = 3;
    const WIN_STATUS_ABNL    = 4;

    const CLOSE_PK_ROOM_TIME = 5*60;


}
